<?php
declare (strict_types=1);

namespace app\command;

use app\data\model\CaseCategoryModel;
use app\data\model\CaseModel;
use app\data\model\CmsCatModel;
use app\data\model\CmsModel;
use app\data\model\CmsPagePartModel;
use app\data\model\NavigateModel;
use app\data\model\ProductsCategoryModel;
use app\data\model\ProductsModel;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;

class TranslateLang extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('translate_lang')
            ->addArgument('lang', Argument::REQUIRED, '语种：如kr、zh、ru')
            ->setDescription('the translate_lang command');
    }

    protected function execute(Input $input, Output $output)
    {
        $lang = $input->getArgument('lang');
        // 导航栏
        $navModel = new NavigateModel();
        // 新闻分类
        $blogCatModel = new CmsCatModel();
        // 新闻详情
        $blogModel = new CmsModel();
        // 产品分类
        $proCatModel = new ProductsCategoryModel();
        // 产品详情
        $proModel = new ProductsModel();
        // 案例分类
        $caseCatModel = new CaseCategoryModel();
        // 案例详情
        $caseModel = new CaseModel();
        // 页面
        $pagePartModel = new CmsPagePartModel();

        // 指令输出
        $output->writeln('translate_lang');
    }
}
